import request from '../utils/request';

export function fetch({ page = 1 }) {
    return request(`/api/SShopOrderDetail/DataListJsonSShopOrderList?_page=${page}&_limit=5`);
}
export function remove(id) {
    return request(`/api/users/${id}`, {
        method: 'DELETE',
    });
}
export function patch(id, values) {
    return request(`/api/users/${id}`, {
        method: 'PATCH',
        body: JSON.stringify(values),
    });
}

export function create(values) {
    return request('/api/users', {
         method: 'POST',
           body: JSON.stringify(values),
          });
    }